home *** CD-ROM | disk | FTP | other *** search
/ Diccionario Visual Trilingue / VISUAL.iso / STARTUP.DIR / 00001_Start-stop Movie.ls next >
Encoding:
Text File  |  1997-07-04  |  4.8 KB  |  133 lines

  1. global gFreeSprite, gCurrentCut, gCurrentScreen, gTextLanguage, gPictureOnly, gShowAll, gZoomHighlight, gLabelHeight, gActiveHS, gFBData, gPictData, gRedTagData, gBracketData, gRegionData, gZoomData, gCutData, gJumpData, gLinkData, gZoomRect, gCancelMouseDown, gOldLabelList, gDrawColor, gListWordFrench, gListWordEnglish, gListWordSpanish, gNbWord, gNbWordMax, gHighLightPos, gHighLightPosC, gCurrentPos, gCurrentPosC, gSelection, gIndexChange, gContenuChange, gNbItemC, gCurrentField, gCurrentFieldC, gCurrAnimation, gPopUpButtonCast, gScreenStatus, gTransitionSize, gReturnDialog, gReturnHelp, gLstHelpRect, gIndexLabel, gDataPath, glstOldVignetPath, glstVignetPath, gRunningMovie, gLstIllustScr, gLstAllLabels, gCompareSC, gSndCastNumber, gCallingLevel, gContenuPicObj, gIndexPicObj, gLstAnimHS, gtheCDpath, gThreshold, gLowMemPanic, gSoundStartFix, gSoundStopFix, gSoundRangeFix, gPrefsPath, gPrinterObj, gSndSprite, gStringRessources, gEditorLanguage, gEditeur, gTHoffsets, gVoidSoundAccess, gPatchedLarousse
  2.  
  3. on GoToMain
  4.   global gPrgKey
  5.   set gEditorLanguage to 3
  6.   set gVoidSoundAccess to []
  7.   set gPatchedLarousse to value(the text of cast 12131)
  8.   watchCursor()
  9.   if voidp(gStringRessources) then
  10.     set gStringRessources to value(field 9998)
  11.     unLoadCast(9998)
  12.   end if
  13.   PreloadNeverCast()
  14.   CheckSetUp()
  15.   InitialiseGlobals()
  16.   initSound("ON")
  17.   set TempObj to FileIO(mnew, "READ", gPrefsPath & "7THOFST.NVG")
  18.   set gTHoffsets to value(TempObj(mReadFile))
  19.   TempObj(mdispose)
  20.   set TempObj to FileIO(mnew, "READ", gPrefsPath & "SNDprm.txt")
  21.   set TempList to value(TempObj(mReadFile))
  22.   TempObj(mdispose)
  23.   set gSoundStartFix to getAt(TempList, 1)
  24.   set gSoundStopFix to getAt(TempList, 2)
  25.   set gSoundRangeFix to getAt(TempList, 3)
  26.   if the machineType = 256 then
  27.     set gThreshold to getAt(TempList, 4)
  28.     set gLowMemPanic to getAt(TempList, 5)
  29.   else
  30.     set gThreshold to getAt(TempList, 6)
  31.     set gLowMemPanic to getAt(TempList, 7)
  32.   end if
  33.   if getAt(TempList, 7) = "Mouch" then
  34.     set gLowMemPanic to 204800
  35.     set gPrgKey to 1
  36.   else
  37.     set gPrgKey to -10
  38.   end if
  39.   set gContenuPicObj to FileIO(mnew, "read", gDataPath & "Pages_c.all")
  40.   set gIndexPicObj to FileIO(mnew, "read", gDataPath & "Pages_i.all")
  41.   set gFreeSprite to 48
  42.   ResetGridSprites()
  43.   set the puppet of sprite 3 to 1
  44.   set the castNum of sprite 3 to gSndCastNumber
  45.   updateStage()
  46.   set the movieTime of sprite 3 to 0
  47.   set the movieRate of sprite 3 to 1
  48.   repeat while the movieTime of sprite 3 < 30
  49.     updateStage()
  50.   end repeat
  51.   set the movieRate of sprite 3 to 0
  52.   set the puppet of sprite 3 to 0
  53.   set the text of cast 12065 to EMPTY
  54.   GetNavigInfo([0, 1, 0])
  55. end
  56.  
  57. on InitialiseGlobals
  58.   InitGlobalGridData()
  59.   InitGlobalNavigData()
  60.   set gCompareSC to EMPTY
  61.   set gSndCastNumber to 10520
  62.   set gSndSprite to 0
  63.   set gScreenStatus to #VIGNET
  64.   set gRunningMovie to [#stop, 0, 0]
  65.   if the machineType = 256 then
  66.     set gDrawColor to 39
  67.   else
  68.     set gDrawColor to 216
  69.   end if
  70.   set gZoomHighlight to 227
  71.   set gTransitionSize to 0
  72.   set gFBData to []
  73.   set gPictData to []
  74.   set gRedTagData to []
  75.   set gBracketData to []
  76.   set gRegionData to []
  77.   set gZoomData to []
  78.   set gCutData to []
  79.   set gJumpData to []
  80.   set gLinkData to []
  81.   set gLstAnimHS to []
  82.   set gFreeSprite to 1
  83.   set gLstAllLabels to [:]
  84.   set gOldLabelList to []
  85.   set gShowAll to 0
  86.   set gPictureOnly to 0
  87.   set gCurrAnimation to -1
  88.   ResetScreenLists()
  89.   set gActiveHS to [#void, 0, []]
  90.   set gCurrentCut to 1
  91.   set gCurrentScreen to 0
  92.   set gZoomRect to rect(0, 0, 0, 0)
  93.   set gCancelMouseDown to 0
  94.   set gReturnDialog to EMPTY
  95.   set gReturnHelp to EMPTY
  96.   set gLstIllustScr to [#ILLUSTRATION, #ZOOM, #REGION, #FAMILY]
  97.   set gCallingLevel to 0
  98.   if the machineType = 256 then
  99.     set gPopUpButtonCast to 10817
  100.     set gLabelHeight to 14
  101.   else
  102.     set gPopUpButtonCast to 10826
  103.     set gLabelHeight to 13
  104.   end if
  105.   set gListWordFrench to []
  106.   set gListWordEnglish to []
  107.   set gListWordSpanish to []
  108.   set gNbWord to [0, 0, 0]
  109.   set gNbWordMax to [0, 0, 0]
  110.   set gIndexLabel to EMPTY
  111.   set gCurrentPos to [1, 1, 1]
  112.   set gCurrentPosC to [1, 1, 1]
  113.   set gHighLightPos to [0, 0, 0]
  114.   set gHighLightPosC to [0, 0, 0]
  115.   set gSelection to EMPTY
  116.   set gIndexChange to 1
  117.   set gContenuChange to 1
  118.   set gNbItemC to [0, 0, 0]
  119.   set gCurrentField to 0
  120.   set gCurrentFieldC to 0
  121.   put " " into field 10095
  122.   put " " into field 10096
  123.   put " " into field 10097
  124.   put " " into field 10098
  125.   put " " into field 10099
  126.   put " " into field 10100
  127.   put " " into field 10101
  128.   set the foreColor of cast 10555 to 96
  129.   set the foreColor of cast 10569 to 96
  130.   set gPrinterObj to #void
  131.   set gLstHelpRect to [rect(54, 67, 183, 163), rect(188, 67, 317, 163), rect(322, 67, 451, 163), rect(456, 67, 585, 163), rect(54, 192, 183, 288), rect(188, 192, 317, 288), rect(322, 192, 451, 288), rect(456, 192, 585, 288), rect(122, 316, 251, 412), rect(255, 316, 384, 412), rect(389, 316, 518, 412)]
  132. end
  133.